<?php 
session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="hu">
<?php 
include("session_start.php"); ?>

<!-- Head r�sz -->
<head>
	<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
	<title>Kino Project</title>
	<link rel="stylesheet" type="text/css" href="stylesheet.css" />
	   <script src="jquery-1.5.2.min.js"></script>
	   <script>
	   $(document).ready(function() {

		// assuming all checkboxes are unchecked at first
		$("span[class='checkbox']").addClass("unchecked");

			$(".checkbox").click(function(){

				if($(this).children("input").attr("checked")){
					// uncheck
					$(this).children("input").attr({checked: ""});
					$(this).removeClass("checked");
					$(this).addClass("unchecked");
				}else{
					// check
					$(this).children("input").attr({checked: "checked"});
					$(this).removeClass("unchecked");
					$(this).addClass("checked");
				}
			});
		});
	   
	   </script>
	
</head>

<!-- Body r�sz -->
<body>

<?php
	include("db_functions.php");
	include_once("pages/film_functions.php");
	include_once("top.php");
	include_once("menu.php");
	include_once("searchline.php");
?>

<div class="main">
	
	<div class="container">
		
		<div class="mainbox">
 		<?php
 			// Oldal betöltés történik
 	  		if(isset($_GET['p'])){
        	  include("pages/". $_GET['p'] .".php");
       		} else {
        	  include("pages/fooldal.php");
      		}
   	    ?> 
		</div>
		
		<div class="leftbox">
    	<?php
      		include_once("bal.php");
    	?> 
		</div>
	
	</div>
	
	<div class="clearer"></div>

</div>

<?php
	include_once("bottom.php");
?> 

</body>

</html>
<?php include("session_end.php"); ?>